<%--
  Created by IntelliJ IDEA.
  User: zhong
  Date: 2020/5/4
  Time: 9:35
  To change this template use File | Settings | File Templates.
--%>
<%
    String path = request.getContextPath();
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<table class="result-tab" width="100%">
    <tr>
        <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>
        <th>序号</th>
        <th>ID</th>
        <th>管理员账号</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${requestScope.pageInfo.list}" varStatus="stat" var="admin">
        <tr>
            <td class="tc"><input  type="checkbox"></td>
            <td>${stat.count}</td>
            <td>${admin.id}</td>
            <td>${admin.name}</td>
            <td>
                <a href="${pageContext.request.contextPath}/manage/admin/adminRoles?id=${admin.id}">修改管理员角色    </a>
                <a class="link-del" href="${pageContext.request.contextPath}/manage/admin/delete?id=${admin.id}">   删除</a>
            </td>
        </tr>
    </c:forEach>

</table>
<div class="list-page"> ${requestScope.pageInfo.total} 条
    <c:forEach begin="1" end="${requestScope.pageInfo.pages}" var="i">
        <c:if test="${i eq requestScope.pageInfo.pageNum}" var="isCur">
            <span  class="current">${i}</span>
        </c:if>
        <c:if test="${not isCur}">
            <a href="#">${i}</a>
        </c:if>
    </c:forEach>
    第${requestScope.pageInfo.pageNum}页/共${requestScope.pageInfo.pages}页<br>
</div>
